// app.js
//引入配置文件
const {config} = require('./utils/config');
App({
    onLaunch() {
        // 展示本地存储能力
        const logs = wx.getStorageSync('logs') || []
        logs.unshift(Date.now())
        wx.setStorageSync('logs', logs)
        //根据运行环境设置全局常量
        this['globalData']['config'] = config;
    },
    globalData: {
        userInfo: null,
        config: {}
    }
})
